﻿@model IEnumerable<HexagonWeb.Models.Airline>

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "当日航班";
}


<h4>当日航班</h4>
<hr />

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Num)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EscapeDistrict)-@Html.DisplayNameFor(model => model.ArriveDistrict)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Type)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EscapeTime)-@Html.DisplayNameFor(model => model.ArriveTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TopCost)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MidCost)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LowCost)
        </th>
        <th></th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Num)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.EscapeDistrict)-@Html.DisplayFor(modelItem => item.ArriveDistrict)
            </td>
            
                @if (item.Type == 0)
                {
                    <td>AirBus 330</td>
                }
                else
                {
                    <td>Boeing 747－400</td>
                }
                    
            <td>
                @Html.DisplayFor(modelItem => item.EscapeTime)-@Html.DisplayFor(modelItem => item.ArriveTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TopCost)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MidCost)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LowCost)
            </td>
       
        </tr>
    }
</table>